# Maintainer: archlive <http://archlive-pkg.googlecode.com> 
pkgname=rapidsvn-cn
_realpkgname=rapidsvn
pkgver=0.9.8
pkgrel=1
pkgdesc="A cross-platform GUI front-end for the Subversion revision system written in C++ using the wxWidgets framework."
depends=('subversion' 'wxgtk')
url='http://rapidsvn.tigris.org/'
arch=('i686' 'x86_64')
license=('GPL')
options=('!libtool')
source=(http://www.rapidsvn.org/download/release/$pkgver/$_realpkgname-$pkgver.tar.gz \
	$_realpkgname.desktop)
md5sums=('1b49d893027ae83dbcff3d7508b3f42f'
         #'349e6d9729f88868902611bb1172f134'
           )

build() {
  cd $srcdir/$_realpkgname-$pkgver
  [ "$NOEXTRACT" == 1 ] || ./configure --prefix=/usr --with-apu-config="`which apu-1-config`" --with-apr-config="`which apr-1-config`" || return 1
  make -k || return 1
  make DESTDIR=$pkgdir install || return 1
  install -Dm644 src/res/bitmaps/rapidsvn_32x32.xpm \
      $pkgdir/usr/share/pixmaps/rapidsvn_32x32.xpm || return 1
  install -Dm644 ../$_realpkgname.desktop \
      $pkgdir/usr/share/applications/$_realpkgname.desktop || return 1
  # 安装中文界面
  msgfmt $srcdir/$_realpkgname-$pkgver/src/locale/zh_CN/$_realpkgname.po -o ${_realpkgname}.mo
  install -m755 -d $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES/
  cp -f ${_realpkgname}.mo $pkgdir/usr/share/locale/zh_CN/LC_MESSAGES/
}
